package com.forstudy.wiki.service;

import com.forstudy.wiki.domain.Test;
import com.forstudy.wiki.mapper.TestMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class TestService {

    @Resource // 这是jdk注解也可以用springboot的Autowired
    private TestMapper testMapper;


    public List<Test> list() {
        return testMapper.list();
    }
}
